


<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <!--   <link rel="stylesheet" href="__STATIC__/zTreeStyle/demo.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/zTreeStyle/zTreeStyle.css" type="text/css"> -->
<!--       <link rel="stylesheet" href="css/demo.css" type="text/css">
    <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css"> -->
    <style>
         .radio-inline input[type=radio] {
    margin-top: 4px;
}
    </style>
</head>

<body style="color:#333;padding:3px;">
     <div style="margin:20px">
        <form action="" class="form-inline">
          <table class="row-margin-top tab-content table-bordered  table" border="1" style="margin-bottom: 0">
                <tr>
                    <td class="text-right" style="min-width: 160px;width: 160px">名称<span class="colorRed">*</span>:</td>
                    <td><input type="text" class="form-control" name="fname" id="fname"></td>
                </tr>
                 <tr>
                    <td class="text-right">序号<span class="colorRed">*</span>:</td>
                    <td><input type="text" class="form-control" name="" id=""></td>
                </tr>
                 <tr>
                   <td class="text-right">一级渠道:</td>
                    <td>
                         <div class="input-group" id="" >
                            <input type="text"   placeholder="请输入关键字或空格查询" class="form-control inputremindPeple select_first" id="fenqu"  value="">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                        <button class="btn btn-primary btn-sm" type="button" id="select_first">选择</button>
                  </td>
                </tr>
                <tr>
                  <td class="text-right">您选定的是:</td>
                  <td></td>
                </tr>
               <tr>
                   <td class="text-right">三级费用科目:</td>
                    <td>
                         <div class="input-group" id="" >
                            <input type="text"   placeholder="请输入关键字或空格查询" class="form-control inputremindPeple select_thirdKind"   value="">
                            <div class="input-group-btn">
                               
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                        <button class="btn btn-primary btn-sm" type="button" id="select_thirdKind">选择</button>
                    </td>
                </tr>
                <tr>
                  <td class="text-right">您选定的是:</td>
                  <td ></td>
                </tr>
                  <tr>
                   <td class="text-right">流程发起部门:</td>
                    <td>
                         <div class="input-group" id="" >
                            <input type="text"   placeholder="请输入关键字或空格查询" class="form-control inputremindPeple select_flowPart" id="fenqu"  value="">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                        <button class="btn btn-primary btn-sm" type="button" id="select_flowPart">选择</button>
                    </td>
                </tr>
                <tr>
                  <td class="text-right">您选定的是:</td>
                  <td></td>
                </tr>
                 <tr>
                   <td class="text-right">金额类型:</td>
                    <td>
                      <label for="weishuiMoney"><input type="radio" class="" name="moneykind" id="weishuiMoney">未税金额</label>
                      <label for="hanshuiMoney"><input type="radio" class="" name="moneykind" id="hanshuiMoney">含税金额</label>
                      <label for="shijiMoney"><input type="radio" class="" name="moneykind" id="shijiMoney">实际投入金额</label>
                    </td>
                </tr>
                <tr>
                    <td class="text-right">金额:</td>
                    <td><input type="text" class="form-control" name="" id="" style="width: 60px">元≤金额＜<input type="text" class="form-control" name="" id="" style="width: 60px">元</td>
                </tr>
                 <tr>
                    <td class="text-right">备注:</td>
                    <td>
                      <textarea name="" id="" style="width: 70%;height: 50px;resize: none;" class="form-control"></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                      <table class="table table-bordered text-center">
                          <tr>
                              <td>审批顺序(审批顺序由上至下)</td>
                              <td>审批人<span class="colorRed">*</span></td>
                               <td><button class="btn btn-sm btn-primary" id="addShenpiMan" type="button">添加审批人</button></td>
                             </tr>
                             <tr>
                             <td>1</td>
                               <td>     <div class="input-group text-center">
                                 <input id="area_id" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                                  <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                      
                    </div>
                   
                </td>
              <td> <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a></td>
            </tr>
                      </table>
                    </td>
                </tr>
          </table>
            <div class="text-center padding-10">
            <button class="btn btn-success" type="button">保存并再添加一条</button><span class="lr_5"></span>
            <button class="btn btn-warning back" type="button" >返回</button>
      </div>
        </form>
     </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
   <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
      <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
      <script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script> 
   <script>
      $(".back").on("click",function(){
          parent.layer.close(parent.layer.getFrameIndex(window.name))
      })



       var select_first = $(".select_first");
         var select_thirdKind = $(".select_thirdKind");
         var select_flowPart = $(".select_flowPart");
 sousuo(select_first);
 sousuo(select_thirdKind);
 sousuo(select_flowPart);
       function sousuo(className){
            className.bsSuggest({
            allowNoKeyword: false, //是否允许无关键字时请求数据
            multiWord: true, //以分隔符号分割的多关键字支持
            separator: ",", //多关键字支持时的分隔符，默认为空格
            getDataMethod: "url", //获取数据的方式，总是从 URL 获取
            url: 'http://unionsug.baidu.com/su?p=3&t=' + (new Date()).getTime() + '&wd=',
            /*优先从url ajax 请求 json 帮助数据，注意最后一个参数为关键字请求参数*/
            jsonp: 'cb',
            /*如果从 url 获取数据，并且需要跨域，则该参数必须设置*/
            processData: function (json) { // url 获取数据时，对数据的处理，作为 getData 的回调函数
                var i, len, data = {
                    value: []
                };
                if (!json || !json.s || json.s.length === 0) {
                    return false;
                }

                // console.log(json);
                len = json.s.length;

                jsonStr = "{'value':[";
                for (i = 0; i < len; i++) {
                    data.value.push({
                        word: json.s[i]
                    });
                }
                data.defaults = 'baidu';

                //字符串转化为 js 对象
                return data;
            }
        });

          }
$("#addShenpiMan").click(function(){
  var str = '<tr><td><div class="input-group"><input id="area_id" type="text" placeholder="请输入关键字或空格查询" class="form-control" value="" style="min-width: 300px;width: 300px"><div class="input-group-btn"><ul class="dropdown-menu dropdown-menu-right" role="menu"></ul></div></div></div></td><td> <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a><span></span> <button class="btn btn-sm btn-danger delthis" type="button">删除</button></td></tr>'
  $("#flowTab tbody").append(str);
})
   </script>
</body>

</html>
